package com.violet.detective.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.violet.detective.entity.Defect;
import com.baomidou.mybatisplus.extension.service.IService;
import com.violet.detective.search.DefectSearchParameter;

import java.util.List;

/**
* @author 21145
* @description 针对表【Defect】的数据库操作Service
* @createDate 2023-09-04 21:42:12
*/
public interface DefectService extends IService<Defect> {
    boolean addDefect(Defect defect);
    boolean editDefect(Defect updatedDefect);
    boolean deleteDefect(Integer id);
    Defect getDefectById(Integer id);
    List<Defect> searchDefects(DefectSearchParameter searchParameter);
    Page<Defect> searchDefects(DefectSearchParameter searchParameter, int pageNum, int pageSize);
    List<Defect> findAllDefects();
    Page<Defect> findAllDefects(int pageNum, int pageSize);

}
